package com.pzsh.task;

import com.pzsh.task.support.Task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@Task(initialDelay = 1, period = 2)//延迟 1 ，间隔 2 ，单位自定义
public class ChargeBillTask implements Runnable {

    @Override
    public void run() {
//        log.info("start task:");
//        log.info("finish task: process bill {}", "test");
    }
}





